package com.ruoyi.feign;


import com.ruoyi.common.core.domain.R;
import com.ruoyi.feign.fallback.FileFeignFallback;
import com.ruoyi.system.api.domain.SysFile;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(name ="file-service",fallback = FileFeignFallback.class)
public interface FileFeign {
    @PostMapping("upload")
    public R<SysFile> upload(MultipartFile file);
}
